<!DOCTYPE html>
<html lang="ch-cn" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BEATIFUL SECRET</title>

    <link rel="stylesheet" th:href="@{/css/basic.css}">
    <link rel="stylesheet" th:href="@{/css/user.css}">
</head>

<body>


<nav>
        <img th:src="@{/img/logo.png}" alt="" class="logo">

    <ul>
        <li><a th:href="@{/user}">用户信息</a></li>
        <li><a th:href="@{/product}">产品表</a></li>
        <li><a th:href="@{/save}">产品录入</a></li>
    </ul>
    <span><a th:href="@{/logout}">退出登录</a></span>
</nav>

    <div class="userContent advertisingContent">
        <br>
        <h4>用户信息表</h4>
        <h4>用户名:<i th:text="${name}"></i></h4>
        <br>
        <table>

            <thead>
                <tr>
                    <th>创建的产品名</th>
                </tr>
            </thead>
            <tbody>
                 <tr th:each="product: ${products}">
                    <td th:text="${product.productName}"></td>
                </tr>
            
            </tbody>
      </table>
        <br>
        <br>

    </div>

<footer>
    <div class="footerMain">
        <span>版权所有 @ xxxx</span>
        <span>备案号: xxxxxxx</span>
        <span>官网: pinzi.vybfi.top</span>
        <span>关于我们</span>

    </div>
</footer>

</body>

</html>